class CheckoutController < ApplicationController
  before_filter :initialize_cart
  before_filter :login_required

  def index
    @order = Order.new
    @user=User.find(session[:user_id])
    @order.email=@user.email

    @page_title = "结算中心"
    @page_nav="><a href='/procates/all/products/list'>产品中心</a>>&nbsp;#{@page_title}"
    if @cart.cart_items.empty?
      flash[:notice] = "您的购物车为空，请先选购产品."
      redirect_to :controller => 'catalog'
    end


  end

  def place_order
  end

  def thank_you
  end

end
